import 'osc_soft.dart';

class OscSoftListEntity {
	int code;
	OscSoftListData data;
	String message;

	OscSoftListEntity({this.code, this.data, this.message});

	OscSoftListEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new OscSoftListData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class OscSoftListData {
	List<OscSoft> items;
	int currentSize;

	OscSoftListData({this.items, this.currentSize});

	OscSoftListData.fromJson(Map<String, dynamic> json) {
		if (json['items'] != null) {
			items = new List<OscSoft>();(json['items'] as List).forEach((v) { items.add(new OscSoft.fromJson(v)); });
		}
		currentSize = json['currentSize'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.items != null) {
      data['items'] =  this.items.map((v) => v.toJson()).toList();
    }
		data['currentSize'] = this.currentSize;
		return data;
	}
}


